<?php
class Form_Supprimervip extends Zend_Form {
	public function init() {
		$this -> setMethod('post');
		$this -> setName('vip');
				
		$vip = new Zend_Form_Element_Select('vip');
		$vip	-> setLabel('Nom du VIP :')
		 		-> setRequired(true);
		$this -> addElement($vip);
		
		$submitButton = new Zend_Form_Element_Submit('Supprimer');
		$this -> addElement($submitButton); //Attache au formulaire
	}
	
	public function remplirListeVip($resu){
		foreach ($resu as $ligne)
		{
			$this->vip->addMultiOption($ligne->VIP_NUMERO,$ligne->VIP_PRENOM." ".$ligne->VIP_NOM);
		}
	}	
}
